﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using KelonProud.Administration.Domain.Configuration;

namespace KelonProud.Administration.Dtos
{
    [AutoMapTo(typeof(KelonProudIcon))]
    public class IconDto:EntityDto
    {
        [MaxLength(20,ErrorMessage = "图标名称长度不能超过20个字符")]
        [Required(ErrorMessage = "图标名称必须填写")]
        public virtual string Name { get; set; }

        [MaxLength(20, ErrorMessage = "图标CSS内容长度不能超过50个字符")]
        [Required(ErrorMessage = "图标CSS内容必须填写")]
        public virtual string CssContent { get; set; }

        [MaxLength(20, ErrorMessage = "图标类型长度不能超过20个字符")]
        [Required(ErrorMessage = "图标类型必须选择")]
        public virtual string Type { get; set; }

        [MaxLength(40, ErrorMessage = "图标关键字长度不能超过40个字符")]
        public virtual string Keywords { get; set; }
    }

    public class IconGroupDto
    {
        public string Type { get; set; }

        public List<IconDto> IconsList { get; set; }
    }
}
